package com.yiwei.hdb.http;

/**
 * 数据请求监听接口
 * Created by Master.Dong on 2016/4/11.
 */
public interface ResponseListener {

    //请求开始时调用
    public void onStartInMainThread(Object result);

    //请求结束时调用
    public void onFinishInMainThread(Object result);

    //请求结束时调用,封装结果
    public Object onSuccessInRequestThread(int statusCode, String content);

    //处理请求结果
    public void onSuccessInMainThread(int statusCode, String content, Object result);

}
